package com.hxxy.wyp.petsLover.common.entities.vo.req;

import com.hxxy.wyp.petsLover.common.services.base.backend.AdminService;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName AdminAddVo
 * @Description TODO
 * @Author wyp
 * @Date 2023/1/8 20:39
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AdminAddReq {
    private Long id;
    @NotNull(message = "账号不能为空")
    private String userName;
    @NotNull(message = "密码不能为空")
    private String userPassword;
    @NotNull(message = "性别不能为空")
    private String sex;
    @NotNull(message = "角色不能为空")
    private List<String> checkedRoles;
    @NotNull(message = "权限不能为空")
    private List<String> checkedPermissions;
    private List<String> roles;
    private List<String> permissions;
}
